@import "../../../../../modules/backend/assets/less/core/boot.less";

.blog-post-preview {
    span.video-placeholder {
        background: #ecf0f1;
        display: block;
        border: 1px solid #e5e9ec;
        padding: 25px;
        min-height: 123px;
        position: relative;
        text-align: center;
        cursor: pointer;
        margin-bottom: 20px;

        .box-sizing(border-box);

        a {
            color: #b1b9be;
            font-size: 16px;
            display: inline-block;
            margin-top: 25px;
            text-decoration: none;
        }

        &:before {
            display: inline-block;
            .icon(@video-camera);
            position: absolute;
            left: 25px;
            top: 25px;
            line-height: 100%;
            font-size: 73px;
            color: #d1d3d4;
        }

        &.hover, &:hover {
            background: #2f99da;

            &:before, a {
                color: white;
            }
        }
    }

    .video-wrapper {
        position: relative;
        padding-top: 25px;
        margin-bottom: 15px;
        height: 0;

        &.ratio-5-4 {
            padding-bottom: 80%;
        }

        &.ratio-4-3 {
            padding-bottom: 70%;
        }

        &.ratio-16-10 {
            padding-bottom: 62.5%;
        }

        &.ratio-16-9 {
            padding-bottom: 56.25%;
        }
    }

    .video-wrapper iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%!important;
        height: 100%!important;
    }
}